<?php

class fip_gdimages
{
    public function GetInfo($filename)
    {
        list ($width, $height, $type) = getimagesize($filename);
        $mime = image_type_to_mime_type($type);
        return array("width"=>$width, "height"=>$height, "type"=>$type, "MIME"=>$mime);
    }
}

FIPManager::RegisterPlugin("gdimages", "/^(jpe?g|png|gif)$/");

?>
